package com.liaowei.model.param;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class LoginUserParam {
    // 登录用户名
    @NotBlank(message = "用户名不能为空")
    @Size(min = 1,max = 16,message = "用户名长度需在1-16")
    private String username;

    // 登录密码
    @NotBlank(message = "密码不能为空")
    @Size(min = 4,max = 16,message = "密码长度需在4-16")
    private String password;
}
